<a href="{:url('addgoods')}" class="layui-btn">新建商品</a>
<form class="layui-form" action="" method="post">
    <div class="layui-form-item">


        <div class="layui-inline">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-inline">
                <input type="text" name="goods_name" value="{$data.goods_name}" class="layui-input"  placeholder="">
            </div>

        </div>

    </div>

    <div class="layui-form-item">


        <div class="layui-inline">
            <label class="layui-form-label">销量</label>
            <div class="layui-input-inline">

                <input type="text" name="virtual_sales_sum1" value="{$data.virtual_sales_sum1}" class="layui-input"  placeholder="">
            </div>
            <div class="layui-input-inline">

                <input type="text" name="virtual_sales_sum2" value="{$data.virtual_sales_sum2}" class="layui-input"  placeholder="">
            </div>

        </div>
        <div class="layui-inline">
            <label class="layui-form-label">价格</label>
            <div class="layui-input-inline">

                <input type="text" name="shop_price1" value="{$data.shop_price1}" class="layui-input"  placeholder="">
            </div>
            <div class="layui-input-inline">

                <input type="text" name="shop_price2" value="{$data.shop_price2}" class="layui-input"  placeholder="">
            </div>

        </div>

    </div>




    <button class="layui-btn" lay-submit="" >筛选</button>
    <span class="layui-btn layui-btn-primary">导出报表</span>
    <span class="layui-btn layui-btn-primary">查看已生成报表</span>
    <a href="{:url('goods')}" class="layui-btn-xs layui-btn layui-btn-normal">清空筛选条件</a>
</form>



<table class="layui-table edit-table" lay-data="{cellMinWidth: 80,
    url:'{:url('goodslist')}',page: true,totalRow:true,where:{goods_name:'{$data.goods_name}',virtual_sales_sum1:'{$data.virtual_sales_sum1}',virtual_sales_sum2:'{$data.virtual_sales_sum2}',shop_price1:'{$data.shop_price1}',shop_price2:'{$data.shop_price2}'}
    }" lay-filter="edit-table" data-url="{:url('editPermissions')}" data-key="permission_id">
    <thead>
    <tr>
        <th lay-data="{toolbar:'#img', width:100, sort: true}">商品</th>
        <th lay-data="{toolbar:'#name', sort: true}">名称</th>
        <th lay-data="{toolbar:'#type'}">访客量</th>
        <th lay-data="{field:'sales_sum'}">销量</th>
        <th lay-data="{field:'create_time'}">添加时间</th>
        <th lay-data="{field:'goods_id'}">序号</th>
        <!--<th lay-data="{toolbar:'#status'}">买家信息</th>-->
        <th lay-data="{toolbar: '#manipulate', width:200}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="img">
    <img src="{{d.good_img[0]}}" alt="">

</script>
<script type="text/html" id="name">
    <p>{{d.goods_name}}</p>
    <p>{{d.market_price}}元</p>
</script>
<script type="text/html" id="type" >

    <p>访客量</p>
    <p>{{d.virtual_collect_sum}}人</p>
</script>

<script type="text/html" id="people" >
    <span>
        <!--{{d.province}}{{d.city}}{{d.district}}{{d.twon}}{{d.address}}-->
    {{d.consignee}}{{d.mobile}}</span>
</script>
<script type="text/html" id="manipulate" >
    <a href="{:url('editgoods')}?id={{d.goods_id}}" class="layui-btn layui-btn-sm layui-btn-normal">编辑</a>
    <!--<a href="" class="layui-btn layui-btn-sm">给积分</a>-->
</script>